import Vue from "vue";
import App from './App.vue';
// import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router/index'
import TypeNav from './components/TypeNav/TypeNav'
import Swiper from 'swiper'
import store from './store/index'
import '@/mock/mockServe'
import 'swiper/css/swiper.css'
import Pagination from '@/components/Pagination/Pagination'
import {Button,MessageBox} from 'element-ui'


Vue.component(TypeNav.name,TypeNav)
Vue.component(Pagination.name,Pagination)


// Vue.use(ElementUI);
Vue.component(Button.name,Button)
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
import *as API from '@/api'
console.log(API)
new Vue({
    el:'#app',
    render:h => h(App),
    beforeCreate() {
        Vue.prototype.$bus = this;
        Vue.prototype.$API = API
    },
    router,
    store
    
    
    
})